import React from 'react'
import { useRoutes } from 'react-router'
import { BrowserRouter } from 'react-router-dom'
import { ROUTER_LIST } from './routes'
const ROU = () => {
  const App = () => useRoutes(ROUTER_LIST)
  return (
    <BrowserRouter>
      <React.Suspense fallback={<div>加载</div>}>
        <App />
      </React.Suspense>
    </BrowserRouter>
  )
}
export default ROU
